package com.zs.blog.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Title: ArticleRandomVO
 * @Author zs
 * @Package com.zs.blog.model.vo
 * @Date 2025/3/12 21:54
 * @description: 用于后前台展示随机文章的数据模型
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticleRandomVO {
    @Schema(description = "文章ID")
    private Long id;

    @Schema(description = "文章缩略图")
    private String articleThumb;

    @Schema(description = "文章标题")
    private String articleTitle;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd hh:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;
}
